$browser
$browser
Class for output generation
show_message(string $message, string $type = 'notice', array $vars = null, bool $override = true, int $timeout) : mixed
Invoke display_message command
string | $message | Message to display |
string | $type | Message type [notice|confirm|error] |
array | $vars | Key-value pairs to be replaced in localized text |
bool | $override | Override last set message |
int | $timeout | Message displaying time in seconds |
download_headers(string $filename, array $params = []) : mixed
Send headers related to file downloads
string | $filename | File name |
array | $params | Optional parameters: type - File content type (default: 'application/octet-stream') disposition - Download type: 'inline' or 'attachment' (default) length - Content length charset - File name character set type_charset - Content character set time_limit - Script execution limit (default: 3600) |
get_edit_field(string $name, string $value, array $attrib = [], string $type = 'text') : string
Create an edit field for inclusion on a form
string | $name | Field name |
string | $value | Field value |
array | $attrib | HTML element attributes for the field |
string | $type | HTML element type (default 'text') |
HTML field definition
json_serialize(mixed $input, bool $pretty = false, bool $inline = true) : string
Convert a variable into a javascript object notation
mixed | $input | Input value |
bool | $pretty | Enable JSON formatting |
bool | $inline | Enable inline mode (generates output safe for use inside HTML) |
Serialized JSON string